package com.baosight.risk.service.quartz.entity;

import javax.persistence.*;

import com.baosight.risk.base.entity.BaseEntity;
import com.baosight.risk.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Table: sys_job
 */
@Data
@Table(name = "sys_job")
@ApiModel
public class SysJob extends BaseEntity {
    /**
     * 任务名称
     * <p>
     * Table:     sys_job
     * Column:    job_name
     * Nullable:  false
     */
    @Column(name = "job_name")
    @Excel(name = "任务名称")
    @ApiModelProperty("任务名称")
    private String jobName;

    /**
     * 任务组名
     * <p>
     * Table:     sys_job
     * Column:    job_group
     * Nullable:  false
     */
    @Column(name = "job_group")
    @Excel(name = "任务组名")
    @ApiModelProperty("任务组名")
    private String jobGroup;

    /**
     * 任务方法
     * <p>
     * Table:     sys_job
     * Column:    method_name
     * Nullable:  true
     */
    @Column(name = "method_name")
    @Excel(name = "任务方法")
    private String methodName;

    /**
     * 方法参数
     * <p>
     * Table:     sys_job
     * Column:    method_params
     * Nullable:  true
     */
    @Column(name = "method_params")
    @Excel(name = "方法参数")
    private String methodParams;

    /**
     * cron执行表达式
     * <p>
     * Table:     sys_job
     * Column:    cron_expression
     * Nullable:  true
     */
    @Column(name = "cron_expression")
    @Excel(name = "cron表达式")
    private String cronExpression;

    /**
     * 计划执行错误策略（1继续 2等待 3放弃）
     * <p>
     * Table:     sys_job
     * Column:    misfire_policy
     * Nullable:  true
     */
    @Column(name = "misfire_policy")
    private String misfirePolicy;

    /**
     * 状态（0正常 1暂停）
     * <p>
     * Table:     sys_job
     * Column:    status
     * Nullable:  true
     */
    @Excel(name = "状态")
    private String status;

    /**
     * 备注信息
     * <p>
     * Table:     sys_job
     * Column:    remark
     * Nullable:  true
     */
    @Excel(name = "备注")
    private String remark;

    /**
     * 排序
     * <p>
     * Table:     sys_job
     * Column:    ROW_ORDER
     * Nullable:  true
     */
    @ApiModelProperty("排序")
    @Column(name = "ROW_ORDER")
    private Integer rowOrder;

    private static final long serialVersionUID = 1L;
}